<?php
session_start();
?>
<?php
include("../connect.php");
$ten_dn=$_SESSION['ten_dn'];//lay ten_dn tu hidden frmDLsua trong tat_ca_thanh_vien.php
$rs=mysql_query("SELECT * FROM thanh_vien WHERE TEN_DN='$ten_dn'");
$rw=mysql_fetch_array($rs);
$mat_khau=$rw['MAT_KHAU'];
$email=$rw['EMAIL'];
$dia_chi=$rw['DIA_CHI'];
$so_dt=$rw['SO_DT'];
$quyen=$rw['MS_QUYEN'];

?>
<div class="table"><h2><span>Cập Nhật Thông Tin Cá Nhân</span></h2></div><br/>
<form action="thanh_vien/luu_thanh_vien_cap_nhat.php" method="post" class="form"  name="frmThemtv" enctype="multipart/form-data" onsubmit="return validate1(this)">
            <table width="100%" cellpadding="0" cellspacing="0">
               <tr>
			   <td width="150"><label for="thanhvien" >Tên đăng nhập(*)</label></td>
                <td>
                	<input id="txtten_dn" readonly="true" style="background-color:#CCC" name="txtten_dn" class="text" size="75"  value="<?php echo $ten_dn;?>"/>
                </td>
				</tr>
				<tr>
                <td><label for="matkhau">Mật khẩu cũ(*)</label></td>
                <td>
                	<input type="password" id="txtmk_cu" name="txtmk_cu" class="text" size="75" onkeyup="kiemtraPass(form.txtten_dn.value, this.value)" />
                </td>
             </tr>
             <tr>
             	<td></td>
                <td><font id="tb" color="#FF0000"></font></td>
             </tr>
             <tr>
             	<td><label for="matkhau">Mật khẩu mới</label></td>
                <td><input type="password" id="txtmk_moi" name="txtmk_moi" class="text" size="75"/></td>
             </tr>
			 <tr>
                <td><label for="website">Email(*)</label></td>
                <td>
                	<input id="txtemail" name="txtemail" class="text" size="75" value="<?php echo $email;?>" onkeyup="kiemtraEmail('<?php echo $ten_dn ?>', this.value)"/>
                </td>
              </tr>
              <tr>
              	<td></td>
                <td><font id="tb1" color="#FF0000"></font></td>
              </tr>
              <tr>
                <td><label for="email">Số điện thoại(*)</label></td>
                <td><input id="txtso_dt" name="txtso_dt" class="text" size="75" value="<?php echo $so_dt;?>" /></td>
              </tr>
			  <tr>
                <td><label for="email">Địa chỉ</label></td>
                <td><input id="txtdia_chi" name="txtdia_chi" class="text" size="75" value="<?php echo $dia_chi;?>"/></td>
              </tr>
			  <tr>
				<td></td>
                <td><input type="image" name="imageField" id="imageField" src="images/submit.gif" class="send" /></td>
              </tr>
			</table>
</form>